package cn.sofwin.sb.di;


import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Component
//@Controller
//@Service
//@Repository
public class Memory {
    private String brand="三星";
    private Integer capacity=16;

    public Memory() {
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "{" +
                "brand='" + brand + '\'' +
                ", capacity=" + capacity +
                '}';
    }
}
